/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package gerenciadorfinanceiro;

import gerenciadorfinanceiro.controller.resources.IncomeDAO;
import gerenciadorfinanceiro.controller.resources.OutcomeDAO;
import gerenciadorfinanceiro.controller.resources.OutcomeSourceDAO;
import gerenciadorfinanceiro.controller.resources.UserDAO;
import gerenciadorfinanceiro.database.resources.User;

/**
 *
 * @author eduardo
 */
public class Utilitario {
    
    private UserDAO userDAO;
    private OutcomeDAO outcomeDAO;
    private OutcomeSourceDAO outcomeSourceDAO;
    private IncomeDAO incomeDAO;

    public User getLoggedUser() {
        return getUserDAO().getUserByName("eduardo");
    }

    /**
     * @return the userDAO
     */
    public UserDAO getUserDAO() {
        return userDAO;
    }

    /**
     * @param userDAO the userDAO to set
     */
    public void setUserDAO(UserDAO userDAO) {
        this.userDAO = userDAO;
    }

    /**
     * @return the outcomeDAO
     */
    public OutcomeDAO getOutcomeDAO() {
        return outcomeDAO;
    }

    /**
     * @param outcomeDAO the outcomeDAO to set
     */
    public void setOutcomeDAO(OutcomeDAO outcomeDAO) {
        this.outcomeDAO = outcomeDAO;
    }

    /**
     * @return the outcomeSourceDAO
     */
    public OutcomeSourceDAO getOutcomeSourceDAO() {
        return outcomeSourceDAO;
    }

    /**
     * @param outcomeSourceDAO the outcomeSourceDAO to set
     */
    public void setOutcomeSourceDAO(OutcomeSourceDAO outcomeSourceDAO) {
        this.outcomeSourceDAO = outcomeSourceDAO;
    }

    /**
     * @return the incomeDAO
     */
    public IncomeDAO getIncomeDAO() {
        return incomeDAO;
    }

    /**
     * @param incomeDAO the incomeDAO to set
     */
    public void setIncomeDAO(IncomeDAO incomeDAO) {
        this.incomeDAO = incomeDAO;
    }

}
